package com.chinatelecom.ifree.business.dao.order;

import com.chinatelecom.ifree.business.domain.order.FcodeEntity;
import com.chinatelecom.ifree.business.domain.order.FcodeStatus;

public interface FcodeDao {

	/**
	 * 存储FCODE
	 * 
	 * @param entity
	 *            FCODE实体
	 * @throws Exception
	 */
	public void saveFcode(FcodeEntity entity) throws Exception;

	/**
	 * 批量存储FCODE
	 * 
	 * @param entitys
	 *            批量FCODE
	 * @throws Exception
	 */
	public void saveFcode(FcodeEntity[] entitys) throws Exception;

	/**
	 * 更新FCODE的状态
	 * 
	 * @param fcode
	 *            f码
	 * @param status
	 *            {@code com.chinatelecom.ifree.business.domain.order.FcodeStatus}
	 * @throws Exception
	 */
	public void updateFcodeState(String fcode, FcodeStatus status) throws Exception;

	/**
	 * 通过FCODE获取F码
	 * 
	 * @param fcode
	 *            f码
	 * @return F码实体
	 * @throws Exception
	 */
	public FcodeEntity getFcodeEntity(String fcode) throws Exception;
}
